package com.xh.bussiness.tiku.service;



import com.xh.bussiness.tiku.bean.dto.SubjectQuestionTypeDto;
import com.xh.bussiness.tiku.bean.request.QuestionTypeQueryRequest;
import com.xh.bussiness.tiku.bean.request.QuestionTypeSaveRequest;
import com.xh.bussiness.tiku.model.QuestionType;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 题型 服务类
 * </p>
 *
 * @author daiwei
 * @since 2019-01-14
 */
public interface IQuestionTypeService extends IBaseService<QuestionType> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryQuestionTypePage(XhPage page, QuestionTypeQueryRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryQuestionType(QuestionTypeQueryRequest bean);

    /**
     * 查询方法
     * @return
     */
    public List queryAllQuestionType();

    /**
     * 根据学科查询所有
     * @return
     */
    public List queryQuestionTypeBySubjectId(String subjectId);

    /**
     * 保存科目试题类型
     * @param bean
     * @return
     */
    public SubjectQuestionTypeDto saveSubjectQuestionTypes(QuestionTypeSaveRequest bean);


    /**
     * 删除科目试题类型
     * @return
     */
    public String deleteSubjectQuestionTypes(String subjectId,Integer questionTypeId);
    	
	public List<QuestionType> queryBySubject(String subject) throws Exception;

	/**
	 * 给复合题小题查询题型
	 * @author 赵文博
	 * @date 2021/7/7 17:00
	 * @return java.util.List<com.xh.bussiness.tiku.model.QuestionType>
	 **/
    List<QuestionType> queryById();
}
